<?php
/* @var $this CmpServicesController */
/* @var $model CmpServices */
/* @var $form CActiveForm */
?>

<div class="add_address mt10">
	<div class="hd"><span class="f_r">带<strong class="c_red">*</strong>为必填项</span><h3>新增地址</h3><h3 class="d_n">修改地址</h3></div>
	<div class="bd">
		<?php $form=$this->beginWidget('CActiveForm', array(
			'id'=>'cmp-services-form',
			'enableAjaxValidation'=>false,
		)); ?>
		
		<ul class="form_list form_list2">
			
			<li class="c_f">
				<span class="tit"><em class="xing">*</em>客服名称：</span>
				<div class="cont f_l">
					<?php echo $form->textField($model,'zcs_name',array('class'=>'t_ipt ipt_bg w_250')); ?>
					<span id="CmpServices_zcs_nameTip"></span>
				</div>
			</li>
			
			<li class="c_f">
				<span class="tit"><em class="xing">*</em>客服类型：</span>
				<div class="cont f_l">
					<?php echo $form->radioButtonList($model,'zcs_type',CmpServices::model()->getZcsType(),array('class'=>'radio','labelOptions'=>array('class'=>'mr20')))?>
					<?php echo $form->error($model,'zcs_type'); ?>
				</div>
			</li>
			
			<li class="c_f">
				<span class="tit"><em class="xing">*</em>账号：</span>
				<div class="cont f_l">
					<?php echo $form->textField($model,'zcs_account',array('class'=>'t_ipt ipt_bg w_250')); ?>
					<span id="CmpServices_zcs_accountTip"></span>
				</div>
			</li>	
		
			<li class="c_f">
				<span class="tit"><em class="xing">*</em>客服电话：</span>
				<div class="cont f_l">
					<?php echo $form->textField($model,'zcs_tel',array('class'=>'t_ipt ipt_bg w_250')); ?>
					<span id="CmpServices_zcs_telTip"></span>
				</div>
			</li>			
		
			<li class="c_f">
				<span class="tit"></span>
				<div class="cont f_l">
					<?php echo CHtml::submitButton(Yii::t('cmp','Save'),array('class'=>'mem_btn mem_btn18')); ?>
					<?php echo CHtml::resetButton(Yii::t('cmp','Reset'),array('class'=>'mem_btn mem_btn07')); ?>
				</div>
			</li>
		</ul>
		<?php $this->endWidget(); ?>

	</div>
</div><!-- form -->
		
 <!-- 表单验证 -->
<script type="text/javascript" src="<?php echo Yii::app()->baseUrl;?>/js/formvalidata/formValidator-4.1.1.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->baseUrl;?>/js/formvalidata/formValidatorRegex.js"></script>
 <script>
	jQuery(document).ready(function($) {
		$.formValidator.initConfig({theme:"Default",formID:"cmp-services-form",
			onError:function(msg, obj){
						alert(msg);
						return false;
					},
			onsuccess:function(){ return true; }
		});
	})
</script>
<script type="text/javascript" src="<?php echo Yii::app()->baseUrl;?>/js/formvalidata/cmpValidate.js"></script> 